<!-- target: freshForm(master = formPage) -->
<!-- block: crumb -->
    <!-- import: freshFormCrumb -->
<!-- /block -->
<!-- block: formMain -->
    <!-- import: freshFormMain -->
<!-- /block -->

<!-- target: freshFormCrumb(master = crumb) -->
<!-- block: path -->
    <span>抢鲜管理</span>
    <span><!-- if: ${formType} === 'create' -->新增<!-- else: -->编辑<!-- /if -->抢鲜活动</span>
<!-- /block -->

<!-- target: freshFormMain(master = customFormView) -->
<!-- block: sections -->
    <!-- import: freshBaseContent -->
<!-- /block -->
<!-- block: submitSection -->
<button type="submit" data-ui-type="Button" data-ui-id="submit" data-ui-group="submit" data-ui-variants="warning wide" class="submit-button">确认提交</button>
<!-- /block -->


<!-- target: freshBaseContent -->
<section class="form-section">

    <div class="ui-form-row">
        <!-- use:
            textboxField(
                field = 'user.detail.name', title = '商户名称', length = 120, width = 300, disabled = true
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            textboxField(
                field = 'user.detail.address', title = '地址',  width = 500, disabled = true
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            textboxField(field = 'title', title = '抢鲜主题', length = 120, width = 300, required = true)
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            textboxField(
                field = 'content', title = '抢鲜内容', 
                width = 300, height = 160,
                required = true, mode = 'textarea'
        )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            timeField(
                dateField = 'startDate', timeField = 'startTime',
                title = '开始时间', required = true, timeList = ${timeList}
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            timeField(
                dateField = 'endDate', timeField = 'endTime',
                title = '结束时间', required = true, timeList = ${timeList}
            )
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            textboxField(field = 'count', title = '抢鲜人数', width = 80, required = true)
        -->
    </div>

    <div class="ui-form-row">
        <!-- use:
            uploaderWithPreviewListField(
                field = 'pics', title = '活动图片', imageWidth = 250,
                uploadUrl = ${uploadUrl}, required = true,
                descriptions = ['单张图片大小不超过300k']
            )
        -->
    </div>

</section>
